package com.hx.er.common.system;

public class Constants {
	// 字符串布尔型
	public static final String BOOLEAN_STR_TRUE = "true";
	public static final String BOOLEAN_STR_FALSE = "false";
	
	// 返回结果
	public static final String RESULT_SUCCESS = "success";
	public static final String RESULT_FAILURE = "failure";
	public static final String RESULT_ERROR = "error";
	public static final String RESULT_CUSTOMER_LOGIN = "login";
	public static final String RESULT_ADMIN_LOGIN = "admin-login";
	public static final String RESULT_MANAGER_LOGIN = "manager-login";
	public static final String RESULT_ROLE_ERROR = "role-error";
	
	// request中的参数
	public static final String REQUEST_PARAM_TOKEN = "token";
	
	// session中的属性名
	public static final String SESSION_USER_INFO = "USER_INFO";
	public static final String SESSION_SECURITY_CODE ="SESSION_SECURITY_CODE";
	
	// cookie中的属性名
	public static final String COOKIE_LOGIN_USERNAME = "COOKIE_LOGIN_USERNAME";
	public static final String COOKIE_LOGIN_PASSWORD = "COOKIE_LOGIN_PASSWORD";
	public static final String COOKIE_LOGIN_AUTO = "COOKIE_LOGIN_AUTO";
	
	// struts配置中的包名
	public static final String STRUTS_PACKAGE_ADMIN = "admin";
	public static final String STRUTS_PACKAGE_MANAGER = "manager";
	
	// 常量属性
	public static final String PROPERTY_LIMIT_LOGIN_FAILURE_COUNT = "LIMIT_LOGIN_FAILURE_COUNT";
	public static final String PROPERTY_PAGE_SIZE = "PROPERTY_PAGE_SIZE";
	public static final String PROPERTY_PIC_PAGE_SIZE = "PROPERTY_PIC_PAGE_SIZE";
	public static final String PROPERTY_SECURITY_CODE_LENGTH = "SECURITY_CODE_LENGTH";
	public static final String PROPERTY_COMMON_DATETIME_FORMAT = "COMMON_DATETIME_FORMAT";
	public static final String PROPERTY_USE_SCURITY_CODE = "USE_SECURITY_CODE";
	public static final String PROPERTY_DEFAULT_COUNTRY = "DEFAULT_COUNTRY";
	public static final String PROPERTY_COOKIE_EXPIRATION_DATE = "COOKIE_EXPIRATION_DATE";
	public static final String PROPERTY_PICTURE_ROOT_PATH = "PICTURE_ROOT_PATH";
	public static final String PROPERTY_MAP_ENGINE = "MAP_ENGINE";
	public static final String PROPERTY_SUPER_ADMIN_PICTURE_PATH = "SUPER_ADMIN_PICTURE_PATH";
	public static final String PROPERTY_BEHAVIOR_TEMP_FILE_PATH = "BEHAVIOR_TEMP_FILE_PATH";
	public static final String PROPERTY_BEHAVIOR_TEMP_LIST_SIZE = "BEHAVIOR_TEMP_LIST_SIZE";
	public static final String PROPERTY_MAIL_HOST = "MAIL_HOST";
	public static final String PROPERTY_MAIL_PORT = "MAIL_PORT";
	public static final String PROPERTY_MAIL_FROM = "MAIL_FROM";
	public static final String PROPERTY_MAIL_TO = "MAIL_TO";
	public static final String PROPERTY_MAIL_PASSWORD = "MAIL_PASSWORD";

	// 状态key
	public static final String PROPERTY_STATUS_VALUE0 = "common.status.value0";
	public static final String PROPERTY_STATUS_VALUE1 = "common.status.value1";
	public static final String PROPERTY_STATUS_VALUE9 = "common.status.value9";
	public static final long STATUS_VALUE0 = 0;
	public static final long STATUS_VALUE1 = 1;
	public static final long STATUS_VALUE9 = 9;

	// 状态key
	public static final String PROPERTY_FLOW_STATUS_VALUE0 = "common.flow.status.value0";
	public static final String PROPERTY_FLOW_STATUS_VALUE1 = "common.flow.status.value1";
	public static final String PROPERTY_FLOW_STATUS_VALUE8 = "common.flow.status.value8";
	public static final String PROPERTY_FLOW_STATUS_VALUE9 = "common.flow.status.value9";
	
	// mybatis中常数配置
	public static final String CONDITION_DATA_LIMIT = "dataLimit";
	public static final String CONDITION_MIN_LIMIT = "minLimit";
	
	// 路径
	public final static String PROPERTIES_FILE_PATH = "/com/hx/er/config/properties.properties";
	
	// 用户类型
	public static final int USER_TYPE_MANAGER = 1;
	public static final int USER_TYPE_CUSTOMER = 2;
	public static final int USER_TYPE_ADMIN = 9;
	
	// 添加餐厅经理时，系统默认语言ID
	public static final long DEF_MANAGER_LANG_ID = 1;
}
